.class Les/bx$r;
.super Ljava/lang/Object;
.source "UIControllerImplV4.java"

# interfaces
.implements Landroid/view/View$OnKeyListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/bx;->C()Landroid/view/View$OnKeyListener;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/bx;


# direct methods
.method constructor <init>(Les/bx;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/bx$r;->a:Les/bx;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onKey(Landroid/view/View;ILandroid/view/KeyEvent;)Z
    .locals 1

    .line 1
    invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I

    move-result p1

    const/4 p3, 0x0

    if-nez p1, :cond_4

    const/16 p1, 0x42

    if-ne p2, p1, :cond_4

    .line 2
    iget-object p1, p0, Les/bx$r;->a:Les/bx;

    iget-object p1, p1, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object p1

    if-nez p1, :cond_0

    return p3

    .line 3
    :cond_0
    iget-object p2, p0, Les/bx$r;->a:Les/bx;

    iget-object p2, p2, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g(Ljava/lang/String;)Z

    move-result p2

    const/4 v0, 0x1

    if-eqz p2, :cond_1

    .line 4
    iget-object p1, p0, Les/bx$r;->a:Les/bx;

    invoke-static {p1}, Les/bx;->e(Les/bx;)V

    .line 5
    iget-object p1, p0, Les/bx$r;->a:Les/bx;

    invoke-static {p1}, Les/bx;->b(Les/bx;)Landroid/widget/EditText;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/EditText;->clearFocus()V

    return v0

    .line 6
    :cond_1
    iget-object p2, p0, Les/bx$r;->a:Les/bx;

    invoke-static {p2}, Les/bx;->b(Les/bx;)Landroid/widget/EditText;

    move-result-object p2

    invoke-virtual {p2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p2

    if-eqz p2, :cond_2

    iget-object p2, p0, Les/bx$r;->a:Les/bx;

    invoke-static {p2}, Les/bx;->b(Les/bx;)Landroid/widget/EditText;

    move-result-object p2

    invoke-virtual {p2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p2

    invoke-interface {p2}, Landroid/text/Editable;->length()I

    move-result p2

    if-nez p2, :cond_3

    .line 7
    :cond_2
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->W()Ljava/lang/String;

    move-result-object p1

    const-string p2, "all"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_3

    .line 8
    iget-object p1, p0, Les/bx$r;->a:Les/bx;

    iget-object p1, p1, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    const p2, 0x7f11052d

    invoke-static {p1, p2, p3}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    .line 9
    iget-object p1, p0, Les/bx$r;->a:Les/bx;

    new-instance p2, Les/bx$r$a;

    invoke-direct {p2, p0}, Les/bx$r$a;-><init>(Les/bx$r;)V

    invoke-virtual {p1, p2}, Les/zw;->a(Ljava/lang/Runnable;)V

    return v0

    .line 10
    :cond_3
    iget-object p1, p0, Les/bx$r;->a:Les/bx;

    iget-object p2, p1, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Les/bx;->s()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->d(Ljava/lang/String;)V

    .line 11
    iget-object p1, p0, Les/bx$r;->a:Les/bx;

    invoke-static {p1, v0}, Les/bx;->a(Les/bx;Z)V

    return v0

    :cond_4
    return p3
.end method
